home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / texts / autoindx.rdm < prev    next >
Text File  |  1996-05-20  |  4KB  |  110 lines

  1. Short:        Scans dirs for brushes. Makes index.htm
  2. Author:       Colin F. Thompson
  3. Uploader:     Colin F. Thompson colin@sd.znet.com
  4. Type:         text/hyper
  5. Distribution: Freeware
  6.  
  7. -------------------------------------------------------
  8.  
  9.  What the heck is all this?
  10.  
  11.  I've been assembling thousands of GIF brushes for the KarmaBar project. 
  12.  I decided to upload the source imagery to AmiNet so we could all share 
  13.  in the wealth ):
  14.  
  15.  The archive, /pix/icons/PCbrushes.lha, needed a good way for the user 
  16.  to see the images. I decided to let the user view the brushes with a
  17.  Web Browser. 
  18.  
  19.  I had to generate an index.html file for each of the 40+ directories 
  20.  of brushes. This was gonna be a big job, so I decided to automate the 
  21.  process.
  22.  
  23.  What I eventually came up with is an ARexx script that does all the work. 
  24.  It scans a directory full of brushes and writes a html file into that 
  25.  directory. If you aim Voyager at that file, you get to see all the 
  26.  pretty pictures on your screen. The young kids would say "Kewl!". 
  27.  
  28.  The usage for the Arexx script is:
  29.   
  30.       RX AutoIndex.rexx (directory name/)
  31.  
  32.  That's pretty easy, but if you have a bunch of directories, as I do, 
  33.  it gets a bit tiring. So, I wrote a MUInt script that pops up a small
  34.  MUI GUI to automate the process. The script scans all the directories 
  35.  in the directory where it lives. Then it presents these directory 
  36.  names in a listview. You can select any or all of these displayed 
  37.  directories. Once you have made your selections, press MAKE HTML, and 
  38.  stand back. The ARexx script is called on to write a html file inside 
  39.  each of the selected directories.
  40.  
  41.  I've included a couple of small directories in this archive you can 
  42.  practice on. Just put the ARexx script in sys:rexx, and MUInt in the 
  43.  path someplace before you fire up the GUI. You will need MUI and 
  44.  ARexx available on your Amiga, or the results will be unsatisfying.
  45.  
  46.  The Arexx-literate among you may change the script to include any 
  47.  html tags you like. I've included a simple set, just enough so the 
  48.  file can be read by a browser.
  49.  
  50.  Now, here's the usual stuff that nobody ever reads, but Urban 
  51.  requires :)
  52.  
  53.  SCRIPT FILENAME: 
  54.  AutoIndex.def            
  55.  
  56.  DATE            
  57.  15 May 1996 
  58.  
  59.  AUTHOR          
  60.  Colin F. Thompson 
  61.  
  62.  DESCRIPTION     
  63.  Generates a HTML file(s) that lists all the brushes
  64.  in the selected directories.
  65.  The HTML filename will be DIRNAME.html    
  66.  
  67.  REQUIREMENTS    
  68.  MUI, MUInt*, Arexx, AutoIndex.rexx*, WB2.x+
  69.  * Included in this archive
  70.  
  71.  INSTALLATION    
  72.  Place MUINT in the path. 
  73.  Place AutoIndex.rexx in sys:rexx
  74.  Place AutoIndex.def in the directory above the ones you want to scan.
  75.  
  76.  USAGE           
  77.  Copy AutoIndex.def to the directory that contains 
  78.  the directories you want to make a HTML listing for. 
  79.  Copy AutoIndex.rexx to SYS:Rexx.
  80.  
  81.  From the shell, execute AutoIndex.def. 
  82.  From the WB, double-click the icon.
  83.  Select the directories from the listview and press 
  84.  MAKE HTML. When you are done, aim your browser at
  85.  any of these HTML files to see the brushes in the
  86.  directory.
  87.  
  88.  DISTRIBUTION    
  89.  Freely distributable.
  90.  MUInt and AutoIndex.rexx are © 1994, 1995, 1996 by 
  91.  Both Software. All rights reserved.
  92.  The full MUInt archive may be found in Aminet as:
  93.  dev/gui/MUInt_dev_v1.lha. Be the first on your block 
  94.  to download it. Enjoy!
  95.  
  96.  CAUTION
  97.  Use this software at your own risk. The author is not 
  98.  responsible for damage.
  99.  
  100.  CREDITS
  101.  Will Bow
  102.  Richard Korber
  103.  
  104.  FOR THE INCURABLY SNOOPY
  105.  Read both of the scripts. They are fully commented. MUInt
  106.  might just amaze you.
  107.  
  108.  GLUTTONS FOR PUNISHMENT
  109.  Check my web page: http://www.znet.com/~colin/
  110.